package com.winglish.as3.loader.vo 
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	import com.winglish.as3.utils.ObjectUtil;
	
	/**
	 * ...
	 * @author charmjin
	 */
	public class LoaderClip extends MovieClip
	{
		public var targetMc:MovieClip;
		public var maskMc:MovieClip;
		
		public function LoaderClip() 
		{
			targetMc = maskMc = null;
		}
		
		/**
		 * 로딩바 관련된 심볼들 매핑.
		 * @param	path
		 */
		protected function loadingBarInit(path:MovieClip):void {
			var arr:Array = new Array();
			arr = ObjectUtil.traceDisplayList(path);
			for each (var i:String in arr) 
			{
				try {
					if (i.indexOf("Mc") != -1 ) {
						trace(i)
						this[i] = new MovieClip();
						
					}
					this[i] = path[i];
				}catch (e:Error) {
					trace(i + " not find MovieClip" );
				}
			}
		}
		
	}

}